import request from '@/config/request.js';

// 获取工厂列表
export const getFactoryList = (params) => request.get('/feishu/factorylist', params);

// 获取班组列表
export const getTeamList = (params) => request.get('/feishu/teamlist', params);

// 获取站点列表
export const getStationList = (params) => request.get('/feishu/getStationList', params);

// 更新分厂和班组绑定关系
export const updateUserInfo = (params) => request.post('/feishu/updateUserInfo', params);

// 出勤提交
export const teamWorkSubmit = (params) => request.post('/feishu/teamWorkSubmit', params);
export const getWorkSubmitList = (params) => request.post('/feishu/getWorkSubmit', params);
export const getWorkSubmitById = (params) => request.get('/feishu/getWorkSubmitById', params);
export const updateWorkSubmitById = (params) => request.post('/feishu/updateWorkSubmitById', params);
export const deleteWorkSubmitById = (params) => request.get('/feishu/deleteWorkSubmitById', params);

export const workTeamlist = (params) => request.get('/feishu/workTeamlist', params);
export const getTeamListByFactory = (params) => request.get('/feishu/getTeamListByFactory', params);

